object ScoreErrorDemo {
  def main(args: Array[String]): Unit = {
    val studentName: String = "李四"
    val math = 85
    val chinese = 58
    val english = 72
    val total = math + chinese + english
    val avg = total.toDouble / 3
    val isPass = (math >= 60) || (chinese >= 60) || (english >= 60)
    println(studentName + " 总分: " + total + " 平均分: " + avg + " 是否及格: " + isPass)
  }
}
